
<div class="layui-form-item">
	<label class="layui-form-label">duotu2<span></span></label>
    <div class="layui-input-inline morepic">
        <div class="morepic_box">
            <div class="piclist" data-field="duotu22">
                <ul id="duotu22_piclist_ul">
                    <?php
                    if($r){
                        $morepic=$r['duotu22'];
                        $morepic_arr=explode("\r\n",$morepic);
                        foreach($morepic_arr as $v){
                            if(!$v){break;};
                            $vs=explode("||",$v);
                    ?>
                    <li title="拖动我是可以排序的哦" draggable="false">
                        <a class="piclist_img duotu22_fancybox" rel="duotu22_rel" title="<?=$vs[2]?>" href="<?=$vs[1]?>">
                            <img src="<?=$vs[0]?>" draggable="false">
                            <input type="hidden" name="duotu22_smallimg[]" value="<?=$vs[0]?>">
                            <input type="hidden" name="duotu22_bigimg[]" value="<?=$vs[1]?>">
                        </a>
                        <div class="piclist_title"><input type="text" name="duotu22_imgname[]" value="<?=$vs[2]?>"></div>
                        <div class="file-panel"><span class="cancel" onclick="delete_li(this)" title="删除图片">删除</span></div>
                    </li>
                    <?php
                        }                     
                    }
                    ?>
                    <li class="add_morepic" id="duotu22_add_button" title="增加图片" onclick="selectfiles('duotu22',moreimg,'img','1000','0')">
                        <div class="piclist_img">+</div>
                    </li>                                                
                    <div class="clear"></div>
                </ul>
            </div>                                        
        </div>
    </div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">多值字段<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var duozhi_form_js='<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="duozhi_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="duozhi_1[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,duozhi_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:10%">11<input type="hidden" name="duozhi_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">22<input type="hidden" name="duozhi_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['duozhi']){
					$morevalue=$r['duozhi'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="duozhi_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['1']:''?>" name="duozhi_1[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,duozhi_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="duozhi_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['1']:''?>" name="duozhi_1[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,duozhi_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">多值字段2<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var duozhi2_form_js='<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="duozhi2_0[]"></td><td class="morevalue_image"><input class="layui-input" value="" id="randImgId" name="duozhi2_1[]"><a class="layui-btn layui-btn-sm" onClick="selectfile(\'randImgId\',\'\',\'img\',\'\',\'\')"><i class="layui-icon">&#xe681;</i></a><td class="morevalue_image"><input class="layui-input" value="" id="randImgId" name="duozhi2_2[]"><a class="layui-btn layui-btn-sm" onClick="selectfile(\'randImgId\',\'\',\'img\',\'\',\'\')"><i class="layui-icon">&#xe681;</i></a><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,duozhi2_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:20%">标题<input type="hidden" name="duozhi2_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">图片<input type="hidden" name="duozhi2_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">地区<input type="hidden" name="duozhi2_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['duozhi2']){
					$morevalue=$r['duozhi2'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="duozhi2_0[]"></td><td class="morevalue_image"><input class="layui-input" value="<?=$r?$vs['1']:''?>" id="duozhi2_1_1" name="duozhi2_1[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('duozhi2_1_1','','img','','')"><i class="layui-icon">&#xe681;</i></a><td class="morevalue_image"><input class="layui-input" value="<?=$r?$vs['2']:''?>" id="duozhi2_2_1" name="duozhi2_2[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('duozhi2_2_1','','img','','')"><i class="layui-icon">&#xe681;</i></a><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,duozhi2_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="duozhi2_0[]"></td><td class="morevalue_image"><input class="layui-input" value="<?=$r?$vs['1']:''?>" id="duozhi2_1_1" name="duozhi2_1[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('duozhi2_1_1','','img','','')"><i class="layui-icon">&#xe681;</i></a><td class="morevalue_image"><input class="layui-input" value="<?=$r?$vs['2']:''?>" id="duozhi2_2_1" name="duozhi2_2[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('duozhi2_2_1','','img','','')"><i class="layui-icon">&#xe681;</i></a><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,duozhi2_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">技能<span></span></label>
  <div class="layui-input-inline">
        <select lay-ignore name="skill[]" multiple="multiple" class="select2" style=""><option value="php" {:strstr($r['skill'],'|php|')?"selected":""} >php</option><option value="java" {:strstr($r['skill'],'|java|')?"selected":""} >java</option><option value="javascript" {:strstr($r['skill'],'|javascript|')?"selected":""} >javascript</option><option value="vue" {:strstr($r['skill'],'|vue|')?"selected":""} >vue</option><option value="uniapp" {:strstr($r['skill'],'|uniapp|')?"selected":""} >uniapp</option></select>
    </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">时间<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" autocomplete="off" name="newstime" id="info_newstime" value="{$r?date("Y-m-d H:i:s",$r['newstime']):date("Y-m-d H:i:s")}" style=""  data-format="yyyy-MM-dd" class="layui-input form-date">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">密码</label>
  <div class="layui-input-inline">
	<input type="password"  placeholder="" name="password" id="info_password" class="layui-input modelform_password" value="<?=$r?$r['password']:''?>" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">简介</label>
  <div class="layui-input-inline">
	<textarea autocomplete="off" name="intro" id="info_intro" style="width:90%;height:200px;" class="layui-input">{$r?$r['intro']:''}</textarea>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">头像<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="face" id="info_face" value="{$r?$r['face']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_face')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_face" data-listtype="img" id="info_face_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_face','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
	<label class="layui-form-label">多图<span></span></label>
    <div class="layui-input-inline morepic">
        <div class="morepic_box">
            <div class="piclist" data-field="morepic">
                <ul id="morepic_piclist_ul">
                    <?php
                    if($r){
                        $morepic=$r['morepic'];
                        $morepic_arr=explode("\r\n",$morepic);
                        foreach($morepic_arr as $v){
                            if(!$v){break;};
                            $vs=explode("||",$v);
                    ?>
                    <li title="拖动我是可以排序的哦" draggable="false">
                        <a class="piclist_img morepic_fancybox" rel="morepic_rel" title="<?=$vs[2]?>" href="<?=$vs[1]?>">
                            <img src="<?=$vs[0]?>" draggable="false">
                            <input type="hidden" name="morepic_smallimg[]" value="<?=$vs[0]?>">
                            <input type="hidden" name="morepic_bigimg[]" value="<?=$vs[1]?>">
                        </a>
                        <div class="piclist_title"><input type="text" name="morepic_imgname[]" value="<?=$vs[2]?>"></div>
                        <div class="file-panel"><span class="cancel" onclick="delete_li(this)" title="删除图片">删除</span></div>
                    </li>
                    <?php
                        }                     
                    }
                    ?>
                    <li class="add_morepic" id="morepic_add_button" title="增加图片" onclick="selectfiles('morepic',moreimg,'img','1000','0')">
                        <div class="piclist_img">+</div>
                    </li>                                                
                    <div class="clear"></div>
                </ul>
            </div>                                        
        </div>
    </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">文件<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="file" id="info_file" autocomplete="off" class="layui-input modelform_file" value="{$r?$r['file']:''}" style=""/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="downloadFile('info_file')"><i class="layui-icon">&#xe601;</i>下载</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_file" data-listtype="file" id="info_file_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_file','','file')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">视频<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="video" id="info_video" autocomplete="off" class="layui-input modelform_video" value="<?=$r?$r['video']:''?>" style=""/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="playVideo('info_video')"><i class="layui-icon">&#xe6ed;</i>播放</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_video" data-listtype="video" id="info_video_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_video','','video')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">详情<span></span></label>
  <div class="layui-input-inline">
        <div class="news_editor" editor_name="newstext" editor_width="0%" editor_height="500" imgwidth="1000" imgheight=""><script id="newstext" name="newstext" type="text/plain"><?=$r?htmlspecialchars_decode($r['newstext']):''?></script></div>
        远程图片保存本地<input type="checkbox" name="newstext_saveFile" lay-ignore value="1" checked> &nbsp;&nbsp;
        提取第一张图做为缩略图（如果缩略图为空的情况下）<input type="checkbox" lay-ignore  name="newstext_getFirstImg" value="1">   
  </div>
</div>	